// CustomerTableDlg.cpp : implementation file
//

#include "stdafx.h"
#include "backManage.h"
#include "CustomerTableDlg.h"
#include "backManageDlg.h"


// CCustomerTableDlg dialog

IMPLEMENT_DYNAMIC(CCustomerTableDlg, CMaxDisplayDlg)

CCustomerTableDlg::CCustomerTableDlg(CWnd* pParent /*=NULL*/)
	: CMaxDisplayDlg(CCustomerTableDlg::IDD, pParent)
{

}

CCustomerTableDlg::~CCustomerTableDlg()
{
}

void CCustomerTableDlg::DoDataExchange(CDataExchange* pDX)
{
	CMaxDisplayDlg::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CCustomerTableDlg, CMaxDisplayDlg)
	ON_MESSAGE(RCV_MSG+CUSTOMER_DLG_ID, &CCustomerTableDlg::OnNetMessage)
END_MESSAGE_MAP()


// CCustomerTableDlg message handlers

BOOL CCustomerTableDlg::OnInitDialog()
{
	CMaxDisplayDlg::OnInitDialog();
	MSGWnd msgwnd;
	msgwnd.hwnd=GetSafeHwnd();
	msgwnd.index=0;
	RegisterNetMsg(&msgwnd, CUSTOMER_DLG_ID);
	m_hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
	// Create the ToolTip control.
	m_tooltip.Create(this);
	m_tooltip.Activate(TRUE);
	m_tooltip.SetPopupSound(NULL);
	m_tooltip.AddTool(GetDlgItem(IDC_EDIT_EPY_NAME), IDS_MENU_EDIT_NAME);

	UpdateData(false);
	return TRUE; 

}

BOOL CCustomerTableDlg::PreTranslateMessage(MSG* pMsg)
{
	// CG: The following block was added by the ToolTips component.
	{
		// Let the ToolTip process this message.
		m_tooltip.RelayEvent(pMsg);

		return CMaxDisplayDlg::PreTranslateMessage(pMsg);
	}
}
LRESULT CCustomerTableDlg::OnNetMessage(WPARAM wParam, LPARAM lParam)
{
	u8 *buf=(u8 *) wParam;
	u32 n=(u32) lParam;

	u32 cmd;
	memcpy(&cmd, buf, sizeof(cmd));

	switch(cmd)
	{
	case 0:
		default:
			break;
	}


	return 0;
}

